import service from '@/utils/request';

// 获取评论列表
export const getCommentListService = (params) => {
    return service({
        url: '/comment/list',
        method: 'get',
        params  
    });
};

// 审核通过评论
export const approveCommentService = (commentId) => {
    return service({
        url: `/comment/approve/${commentId}`,
        method: 'put'
    });
};

// 审核不通过评论
export const rejectCommentService = (commentId) => {
    return service({
        url: `/comment/reject/${commentId}`,
        method: 'put'
    });
};